function totalError = cuadraticError(outputs, expectedOutputs)
    errors = outputs - expectedOutputs;
    totalError = sum(errors.^2)*0.5;
end
